import React from 'react'
import {BrowserRouter,Route,Switch} from 'react-router-dom'
import App from './App'
import MyWealth from './pages/myWealth/index'
import InvestOnline from './pages/investOnline/index'
import Mine from './pages/mine/index'
import Equity from './pages/equity/index'
import Insurance from './pages/insurance/index'
import Main from './pages/main/index'
import GrowthValue from './pages/growthValue/index'
import AMAp from './pages/amap/index'
import Login from './pages/login/index'
import RechargeRecord from './pages/rechargeRecord/index'
import Recharge from './pages/recharge/index'
import OAuth from './pages/oauth/index'
import CheckinRecord from './pages/checkinRecord/index'
import Products from './pages/products/index'
import CommonPage from './pages/commonPage/index';
export default class IRouter extends React.Component{
    render(){
        return(
                <BrowserRouter>
                    <Switch>
                        <App>
                            <Route path='/oauth' exact component={OAuth}/>
                            <Route path='/login'  component={Login} />
                            <Route path='/main'  component={Main}/>
                            <Route path='/investOnline'  component={InvestOnline}/>
                            <Route path='/Insurance'  component={Insurance}/>                            
                            <Route path='/mine'  component={Mine}/>
                            <Route path='/checkinRecord' component={CheckinRecord}/>
                            <Route path='/mywealth'  component={MyWealth}/>
                            <Route path='/growthvalue'  component={GrowthValue}/>
                            <Route path='/amap'  component={AMAp}/>
                            <Route path='/recharge'  component={Recharge}/>
                            <Route path='/rechargeRecord'  component={RechargeRecord}/>
                            <Route path='/products' component={Products}/>
                            <Route path='/commonPage' component={CommonPage}/>
                            <Route path='/equity'  component={Equity}/>
                        </App>
                    </Switch>
                </BrowserRouter>
        );
    }
}